<%--
    Document   : syncApogeeDBCompte
    Created on : 17 sept. 2012, 16:04:59
    Author     : issam
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html lang="true">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><bean:message key="welcome.title"/></title>
        <html:base/>
    </head>
    <body style="background-color: white">

        <logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application">
            <div  style="color: red">
                ERROR:  Application resources not loaded -- check servlet container
                logs for error messages.
            </div>
        </logic:notPresent>

        <h3><bean:message key="welcome.heading"/></h3>
        <p><bean:message key="welcome.message"/></p>
        <p>
            saisir les information de l'étudiant à ajouter à la BD comptes pour création de comptes ENT
        </p>
                        <logic:present name="org.apache.struts.action.ERROR">
                    <div class="errors" id="status" style="background-color: rgb(255, 238, 221);">
                    <html:messages id="errors">
                        <bean:write name="errors" />
                        <br/>
                    </html:messages>
                    </div>
                </logic:present>
        <html:form action="Sync/updateCompteStd.do" >
            Apogee: ${compte.apogee}
            <html:hidden property="apogee" value="${compte.apogee}"></html:hidden>
            <br>
            CNE: <html:text property="cne" value="${compte.cne}"></html:text>
            <br>
            CIN: <html:text property="cin" value="${compte.cin}"></html:text>
            <br>
            Nom: <html:text property="nom" value="${compte.nom}"></html:text>
            <br>
            Prénom: <html:text property="prenom" value="${compte.prenom}"></html:text>
            <br>
            Etablissement:
            <html:select property="etab" value="${compte.etab}">
                <html:option value="FOC" >Fac medecine dentaire</html:option>
                <html:option value="FMC" >Fac medecine et pharmacie</html:option>
                <html:option value="PRD" >PRESIDENCE</html:option>
                <html:option value="BUMS" >BUMS</html:option>
                <html:option value="FLC" >FLSH</html:option>
                <html:option value="EST" >EST Casa</html:option>
                <html:option value="EEM" >ENSEM</html:option>
                <html:option value="ENS" >ENS</html:option>
                <html:option value="FSC" >FSAC</html:option>
                <html:option value="FDC" >FSEJS</html:option>
            </html:select>
            <br>
            Sexe:<html:select property="sexe" value="${compte.sexe}">
                <html:option value="M.">Monsieur</html:option>
                <html:option value="Mlle">Madmoiselle</html:option>
                <html:option value="Mme">Madame</html:option>
            </html:select>
                <br>
                Naissance(YYYY-MM-DD):<html:text property="naissance" value="${compte.naissance}"/>
            <html:submit></html:submit>
            <html:reset></html:reset>

        </html:form>

        <br>
        <html:link action="Sync/menuPrincipalSync.do">Menu principal</html:link>

    </body>
</html:html>
